<template>
  <div id="recommendView">
    <div class="recommendItem" v-for="item in recommends" :key="item.link">
      <a :href="item.link">
        <img :src="item.image">
        <div>
          {{item.title}}
        </div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "RecommerdView",
  props:{
    recommends:{
      type:Array,
      defaults:[]
    }
  }
}
</script>

<style scoped>
#recommendView{
  display: flex;
  margin-top: 10px;
  width: 100%;
  height: 120px;
  text-align: center;
  margin-bottom: 10px;
  overflow: hidden;
}
#recommendView .recommendItem{
  flex: 1;
  margin: 0 5px;
  height: 100%;
}
#recommendView .recommendItem img{
  width: 100%;
  height: 80%;
  border-radius: 50%;
  margin-bottom: 5px;
}
</style>
